package ${packageName}.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.*;


/**
* @author Faye.Wang
* @version 1.0
* @date 2021/1/6 14:54
* @Description
*/
@TableName(value = "${tableName}")
public class ${entityName} implements Serializable{

<#list columns as item>
	/**
	* 字段：${item.name} ：${item.columnComment}
	*/
<#if item.isPrimaryKeys==true && item.isAutoincrement=='YES'>
	@TableId(type = IdType.AUTO)
</#if>
	private ${item.sqlColumn} ${item.name};

</#list>

<#list columns as item>
	public ${item.sqlColumn} get${item.propertyName}() {
		return ${item.name};
	}

	public void set${item.propertyName}(${item.sqlColumn} ${item.name}) {
		this.${item.name} = ${item.name};
	}
</#list>

}
